package com.itheima.pattern.adapter.class_adapter;

public class Computer {

    public String readSD(SDCard sdCard){
        if(sdCard==null){
            throw new NullPointerException("sd card is not null");
        }
        String s = sdCard.readSD();

        return s;
    }

    public void writeSD(SDCard sdCard,String msg){
        sdCard.writeSD(msg);
    }
}
